<?php
abstract class ResourceFile
{
	protected $mtime=0;
	protected $length=0;
	protected $mime='application/octet-stream';
	protected $path='';
	public function __construct()
	{
		header('Last-Modified: '.gmdate('D, d M Y H:i:s', $this->mtime).' GMT', true, 200);
		header('Content-Length: '.$this->length);
		header('Content-Type: '.$this->mime);
		readfile($this->path);
	}
}
